package a.f.h.f.a;

import a.c.*;
import a.c.d;
import a.c.m;
import a.c.n;

class i
{
  private static final Object a = null;
  private static final Object b = new Object();
  private static final Object c = new Object();
  
  public static bb a(q paramq, n paramn)
  {
    int j = e.i;
    boolean bool = e.h;
    bb localbb1 = new bb();
    bb localbb2 = new bb();
    x localx = paramq.B();
    w localw = paramq.v();
    label136:
    label145:
    label157:
    label215:
    label344:
    do
    {
      if (!localw.e()) {
        break;
      }
      a.c.e locale1 = localw.d();
      int i = 0;
      if (bool) {
        return localbb2;
      }
      Object localObject;
      if (paramn != null)
      {
        localObject = locale1.m();
        do
        {
          if (!((m)localObject).e()) {
            break;
          }
          if (bool) {
            break label136;
          }
          if (paramn.getBool(((m)localObject).a())) {
            i++;
          }
          ((m)localObject).f();
        } while (!bool);
      }
      if (j == 0) {
        i = locale1.d();
      }
      if (i == 0) {
        localbb1.c(locale1);
      }
      do
      {
        for (;;)
        {
          if (!localbb1.isEmpty())
          {
            localObject = (a.c.e)localbb1.b();
            do
            {
              if (localx.get(localObject) == b)
              {
                localx.a(localObject, c);
                if (j != 0) {
                  break label215;
                }
                localbb2.a(localObject);
                if (!bool) {
                  break;
                }
              }
              if (localx.get(localObject) != a) {
                break;
              }
              localx.a(localObject, b);
              localbb1.c(localObject);
              if (j != 0) {
                break label157;
              }
            } while (bool);
            m localm = ((a.c.e)localObject).n();
            if (localm.e())
            {
              d locald = localm.a();
              if (bool) {
                break;
              }
              if (paramn != null)
              {
                if (j != 0) {
                  break label344;
                }
                if (!paramn.getBool(locald)) {}
              }
              else
              {
                a.c.e locale2 = locald.f();
                if (j != 0) {
                  break label342;
                }
                if (localx.get(locale2) == a) {
                  localbb1.c(locale2);
                }
              }
              localm.f();
              if (!bool) {
                break label145;
              }
            }
          }
        }
        localw.f();
      } while (j != 0);
    } while (!bool);
    label342:
    if (j == 0) {
      paramq.a(localx);
    }
    return localbb2;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.h.f.a.i

 * JD-Core Version:    0.7.0.1

 */